package com.biscuit.page.basicservice.remote.api;

import com.biscuit.page.basicservice.api.OpenCommonRemote;
import com.biscuit.common.base.BaseResponse;
import com.biscuit.page.basicservice.api.model.response.common.NicknameAResp;
import com.biscuit.page.basicservice.api.model.response.open_common.GeneratePublicPrivateKeyAResp;
import com.biscuit.page.basicservice.service.OpenCommonService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author biscuit
 * @createTime 2024/5/17 10:09
 */
@RestController
public class OpenCommonRemoteImpl implements OpenCommonRemote {

    @Resource
    private OpenCommonService openCommonService;

    @Override
    public BaseResponse<NicknameAResp> generateNickname() {
        return this.openCommonService.generateNickname();
    }

    @Override
    public BaseResponse<GeneratePublicPrivateKeyAResp> generatePublicPrivateKey() {
        return this.openCommonService.generatePublicPrivateKey();
    }

}
